export PROJECT_DIR ?= .

export USR_SRC_DIR = . \
				$(PROJECT_DIR)/../common
export USR_INC_DIR = . \
				$(PROJECT_DIR)/../common

# prepare output dir and start make
include $(STANDALONE_SDK_ROOT)/make/build_baremetal.mk

.PHONY: rebuild boot config_amp_d2000_aarch64
load_amp_d2000_aarch64_config:
	@cp $(PROJECT_DIR)/../configs/d2000_amp_core0_aarch64_defconfig \
	./$(KCONFIG_CONFIG) -f

load_amp_d2000_aarch32_config:
	@cp $(PROJECT_DIR)/../configs/d2000_amp_core0_aarch32_defconfig \
	./$(KCONFIG_CONFIG) -f

rebuild:
	make clean
	make

boot:
	make -j
	@cp ./$(CONFIG_TARGET_NAME).elf /mnt/d/project/tftp
	@cp ./$(CONFIG_TARGET_NAME).bin /mnt/d/project/tftp

config_amp_d2000_aarch64: load_amp_d2000_aarch64_config genconfig clean
config_amp_d2000_aarch32: load_amp_d2000_aarch32_config genconfig clean